package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengc
 * @since 2023-05-10
 */
@Getter
@Setter
@TableName("ams_sample")
@ApiModel(value = "Sample对象", description = "")
public class Sample implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名称")
    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @ApiModelProperty("预约时间")
    private Date sampletime;

    @ApiModelProperty("用户id")
    private Integer userid;

    @ApiModelProperty("预约是否成功（成功1，未通过0，失败-1）")
    private Integer samplereserva;

    @ApiModelProperty("预约描述")
    private String sampledesc;

    @ApiModelProperty("宠物种类id")
    private Integer petstypeid;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm",timezone = "Asia/Shanghai")
    @ApiModelProperty("寄养开始时间")
    private LocalDateTime timestart;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm",timezone = "Asia/Shanghai")
    @ApiModelProperty("寄养结束时间")
    private LocalDateTime endtime;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm",timezone = "Asia/Shanghai")
    @ApiModelProperty("宠物领走时间")
    private LocalDateTime taketime;

    @ApiModelProperty("月份")
    @TableField(exist = false)
    private String month;

    @ApiModelProperty("寄养服务用户数量")
    @TableField(exist = false)
    private Integer samplecount;
}
